.class Lcom/example/m6wmr/MarketActivity$14;
.super Ljava/lang/Thread;
.source "MarketActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MarketActivity;->getShopSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MarketActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MarketActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    .line 635
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 11

    .prologue
    const/4 v10, 0x1

    .line 637
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 638
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->temshopls:Ljava/util/List;
    invoke-static {v8}, Lcom/example/m6wmr/MarketActivity;->access$6(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;

    move-result-object v8

    invoke-interface {v8}, Ljava/util/List;->clear()V

    .line 640
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 643
    .local v5, "msg":Landroid/os/Message;
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    iget-object v9, v9, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 644
    const-string v9, "/index.php?ctrl=app&action=newshop&lat="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 645
    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    iget-object v9, v9, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&lng="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    iget-object v9, v9, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&limitcosttype="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 646
    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->pscostvalue:I
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$25(Lcom/example/m6wmr/MarketActivity;)I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&ordertype="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->ordervalue:I
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$26(Lcom/example/m6wmr/MarketActivity;)I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&shopopentype=1"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&searchvalue="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->searchvalue:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$27(Lcom/example/m6wmr/MarketActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 647
    const-string v9, "&shoptype="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->shoptypevalue:I
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$28(Lcom/example/m6wmr/MarketActivity;)I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&page="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->page:I
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$1(Lcom/example/m6wmr/MarketActivity;)I

    move-result v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&areaid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->areaid:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/m6wmr/MarketActivity;->access$29(Lcom/example/m6wmr/MarketActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 648
    const-string v9, "&datatype=json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 643
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 650
    .local v7, "url":Ljava/lang/String;
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    iget-object v8, v8, Lcom/example/m6wmr/MarketActivity;->m:Lmyapp/MyApp;

    invoke-static {v7, v8}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v6

    .line 654
    .local v6, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 656
    .local v4, "json":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 711
    .end local v4    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 660
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v8, "msg"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 661
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    const/4 v9, 0x1

    invoke-static {v8, v9}, Lcom/example/m6wmr/MarketActivity;->access$3(Lcom/example/m6wmr/MarketActivity;Z)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 706
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 708
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 666
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v8, "msg"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 667
    .local v3, "jarray":Lorg/json/JSONArray;
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v8

    if-ge v8, v10, :cond_2

    .line 668
    const/16 v8, 0x27

    iput v8, v5, Landroid/os/Message;->arg1:I

    .line 669
    sget-object v8, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 672
    :cond_2
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v8

    if-lt v2, v8, :cond_3

    .line 704
    const/4 v8, 0x3

    iput v8, v5, Landroid/os/Message;->arg1:I

    .line 705
    sget-object v8, Lcom/example/m6wmr/MarketActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 673
    :cond_3
    new-instance v0, Lbean/ShopBean;

    invoke-direct {v0}, Lbean/ShopBean;-><init>()V

    .line 674
    .local v0, "bb":Lbean/ShopBean;
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 675
    const-string v9, "shopid"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 674
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setShopId(Ljava/lang/String;)V

    .line 676
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 677
    const-string v9, "shopname"

    .line 676
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setShopName(Ljava/lang/String;)V

    .line 678
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    const-string v9, "juli"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setJuLi(Ljava/lang/String;)V

    .line 679
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 680
    const-string v9, "limitcost"

    .line 679
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setLimitCost(Ljava/lang/String;)V

    .line 681
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 682
    const-string v9, "sellcount"

    .line 681
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setSellcount(Ljava/lang/String;)V

    .line 683
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 684
    const-string v9, "shopimg"

    .line 683
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setShopImg(Ljava/lang/String;)V

    .line 685
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 686
    const-string v9, "opentype"

    .line 685
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setOpenType(Ljava/lang/String;)V

    .line 687
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 688
    const-string v9, "sendtype"

    .line 687
    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setsendtype(Ljava/lang/String;)V

    .line 689
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 690
    const-string v9, "pscost"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 689
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setpscost(Ljava/lang/String;)V

    .line 691
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 692
    const-string v9, "canps"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 691
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setcanps(Ljava/lang/String;)V

    .line 693
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 694
    const-string v9, "point"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 693
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setPoint(Ljava/lang/String;)V

    .line 695
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 696
    const-string v9, "starttime"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 695
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setstarttime(Ljava/lang/String;)V

    .line 697
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 698
    const-string v9, "arrivetime"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 697
    invoke-virtual {v0, v8}, Lbean/ShopBean;->setarrivetime(Ljava/lang/String;)V

    .line 699
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    const-string v9, "shoptype"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setShoptype(Ljava/lang/String;)V

    .line 700
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    const-string v9, "address"

    invoke-virtual {v8, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Lbean/ShopBean;->setaddress(Ljava/lang/String;)V

    .line 701
    iget-object v8, p0, Lcom/example/m6wmr/MarketActivity$14;->this$0:Lcom/example/m6wmr/MarketActivity;

    # getter for: Lcom/example/m6wmr/MarketActivity;->temshopls:Ljava/util/List;
    invoke-static {v8}, Lcom/example/m6wmr/MarketActivity;->access$6(Lcom/example/m6wmr/MarketActivity;)Ljava/util/List;

    move-result-object v8

    invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 672
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 714
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 715
    monitor-exit p0

    return-void

    .line 714
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
